<?php

namespace App\Modules\Mq\Services;

class ProcessService {

    public static function Instance($taskName){

        if ($taskName == '') {
            return null;
        }
        $className = 'App\\Modules\\Mq\\Tasks\\'. ucfirst($taskName) . 'Task';
        if(class_exists($className)){
            return new $className();
        }
        return null;
    }

}